package virtorina.client.room.rpc;

import java.util.LinkedHashSet;
import java.util.LinkedList;

import virtorina.client.admin.dto.LabelDTO;
import virtorina.client.admin.rpc.AdminService;
import virtorina.client.admin.rpc.AdminServiceAsync;
import virtorina.client.room.dto.InfoDTO;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

//This is the servlet mapping in web.xml file
@RemoteServiceRelativePath("qinsert")

public interface GWTInsertQuestions extends RemoteService{
	
	public static class Util {
		private static GWTInsertQuestionsAsync instance;
		public static GWTInsertQuestionsAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(GWTInsertQuestions.class);
			}
			return instance;
		}
	}
	

	LinkedList<LabelDTO> getAllLabels();
	
	String getAccessToAddQuestions();

	InfoDTO getQuestionByID(Long ID);

	Long insertQuestions(Long id, String question, LinkedList<String> answers,
			LinkedHashSet<String> labels, Integer type, String provider,
			Integer time);


}
